package com.foton.lotteryinfrastructure.infrastru.dao;

import com.foton.lotteryinfrastructure.infrastru.po.Award;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author RenPu
 * @Date 2023/11/24 10:41
 * @Version 1.0
 * @Description: 抽奖奖品 DAO
 **/

@Mapper
public interface IAwardDao {

    /**
     * 根据奖品ID，查询对应的奖品信息
     *
     * @param awardId
     * @return
     */
    Award queryAwardInfo(String awardId);

    /**
     * 批量插入商品信息数据
     *
     * @param list
     */
    void insertList(@Param("list") List<Award> list);
}
